#define _CRT_SECURE_NO_WARNINGS 1
#include<stdio.h>
#include<string.h>
#include<assert.h>
int my_strcmp(const char* p1, const char* p2) {
	assert(p1 && p2);
	while (*p1 == *p2) {
		p1++;
		p2++;
	}
	if (*p1 > *p2) {
		return 1;
	}
	else if (*p1 == *p2) {
		return 0;
	}
	else {
		return -1;
	}
}
int main() {
	char arr1[10] = "abq";
	char arr2[10] = "abcdef";
	printf("%d %d", strcmp(arr1, arr2), my_strcmp(arr1, arr2));
	return 0;
}